package com.geekathon.mobzilla.model;

public class UserInfo {

	private int userId;

	private String userName;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Override
	public boolean equals(Object obj) {

		if (obj instanceof UserInfo) {
			return userName.equals(((UserInfo) obj).userName);
		}

		return false;
	}

	public UserInfo() {
		// TODO Auto-generated constructor stub
	}

	public UserInfo(String userName) {
		this.userName = userName;
	}

}
